package vip.zhenzicheng.demo.spring.framework.utils;

/**
 * @author zhenzicheng
 * @date 2022-05-28 12:32
 */
public class StringUtils {
  private StringUtils() {

  }

  // userDao   ==>   setUserDao
  public static String getSetterMethodByFieldName(String fieldName) {
    String methodName = "set" + fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1);
    return methodName;
  }
}
